const state = {
  cstName: '',
  cstId: '',
  list: [],
  testObj: ''
}

const getters = {
  getCstName (state) {
    return state.cstName
  },
  getCstId (state) {
    return state.cstId
  },
  getObj (state) {
    return state.testObj
  },
  // getList (state) {
  //   return state.list
  // }
  getList: state => {
    return state.list
  }
}

const actions = {

}

const mutations = {
  setCstName (state, cst) {
    state.cstName = cst
  },
  setCstId (state, cstIdE) {
    state.cstId = cstIdE
  },
  setList (state, _list) {
    state.list = _list
  },
  setObj (state, obj) {
    state.testObj = obj
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
